﻿using System;
using System.Windows;
using System.Globalization;

using Invini.Localization;

namespace Sample01
{
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void invariant(object sender, RoutedEventArgs e)
        {
            LocalizationManager.Current.Settings.Culture = CultureInfo.InvariantCulture;
        }
        private void en(object sender, RoutedEventArgs e)
        {
            LocalizationManager.Current.Settings.Culture = new CultureInfo("en");
        }
        private void enUS(object sender, RoutedEventArgs e)
        {
            LocalizationManager.Current.Settings.Culture = new CultureInfo("en-us");
        }
        private void enGB(object sender, RoutedEventArgs e)
        {
            LocalizationManager.Current.Settings.Culture = new CultureInfo("en-gb");
        }
        private void enAU(object sender, RoutedEventArgs e)
        {
            LocalizationManager.Current.Settings.Culture = new CultureInfo("en-au");
        }
        private void pl(object sender, RoutedEventArgs e)
        {
            LocalizationManager.Current.Settings.Culture = new CultureInfo("pl");
        }
        private void zhTW(object sender, RoutedEventArgs e)
        {
            LocalizationManager.Current.Settings.Culture = new CultureInfo("zh-tw");
        }
    }
}
